#ifndef ROBOTLISTFORM_H
#define ROBOTLISTFORM_H

#include <QStyledItemDelegate>
#include <QWidget>


namespace Ui {
class RobotListForm;
}

class RobotICONDelegate: public QStyledItemDelegate{

    Q_OBJECT
public:
    explicit RobotICONDelegate(QObject *parent = nullptr);
    void paint(QPainter *painter, const QStyleOptionViewItem &option,
               const QModelIndex &index) const override;

    // QAbstractItemDelegate interface
public:
    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
};

class RobotListForm : public QWidget
{
    Q_OBJECT

public:
    explicit RobotListForm(QWidget *parent = nullptr);
    ~RobotListForm();

private slots:
    void on_Exit_pushButton_clicked();

    void on_enter_ctrl_btn_clicked();

    void on_data_btn_clicked();

    void on_back_pushButton_clicked();

signals:
    void goback();
private:
    void scaleWidgets(QWidget *widget, double xScale,double yScale);
    Ui::RobotListForm *ui;

    // QWidget interface
public slots:
    void setVisible(bool visible);
};

#endif // ROBOTLISTFORM_H
